<?php
class UnitTestCase_Unfuddle_Auth extends UnitTestCase_Unfuddle {

    public function testConstruct() {
    
        $auth = new Unfuddle_Auth('username', 'password');
        $this->assertEqual($auth->getUsername(), 'username');
        $this->assertEqual($auth->getPassword(), 'password');
    
    }
    
    public function testToString() {
    
        $auth = new Unfuddle_Auth('username', 'password');
        $authString = (string) $auth;
        $this->assertEqual($authString, 'username:password');
    
    }

}